/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.firebird.base.test;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.test.AbstractTransactionalSpringContextTests;

/**
 * @author qiuxj
 * @date 2009-11-14
 */
public abstract class BaseTestCase extends
		AbstractTransactionalSpringContextTests {
	
	  public static final String VAR_STR = "JunitTest";
	  public static final int VAR_INT = 99999;
	  protected final Log log = LogFactory.getLog(super.getClass());

	  protected String[] getConfigLocations()
	  {
	    setProperties();

	    return getLocations();
	  }

	  protected String[] getLocations()
	  {
	    return new String[] { "classpath*:spring/*.xml", "classpath*:spring/test/*.xml" };
	  }

	  protected void setProperties()
	  {
	    setAutowireMode(new Integer(1));

	    setDefaultRollback(Boolean.TRUE);
	  }

}
